{// 引入标签库 }
<tagLib name="html" />
<style type="text/css">
    td{height: 31px;}
    td a{display: block;width: auto;height: 30px;line-height: 120%;}

</style>
{// 加载头部公共文件 }
<include file="Public:header" />
<!-- 菜单区域  -->
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
<!-- 主页面开始 -->
<div id="main" class="main" >
<!-- 主体内容  -->
<div class="content" >
<div class="title">入住单列表</div>
<!--  功能操作区域  -->
<div class="operate" >
<html:imageBtn name="add" value="新增" click="add()" style="impBtn hMargin fLeft shadow" />
<html:imageBtn name="edit" value="编辑" click="edit()" style="impBtn hMargin fLeft shadow" />
<html:imageBtn name="delete" value="删除" click="foreverdel()" style="impBtn hMargin fLeft shadow" />
<html:imageBtn name="pass" value="审核" click="checkPass()" style="impBtn hMargin fLeft shadow" />
<!-- 查询区域 -->
<php>
    function getUserName($user_id){
        return getModelName($user_id,'User','nickname');
    }
</php>
<div class="fRig">
<form method='post' action="__URL__">
    <div class="fLeft">
        <span id="key">入住<input type="text" name="start_time" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="<notempty name='_REQUEST.start_time'>{$_REQUEST.start_time}</notempty>">离开<input type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="end_time" id="end_time" value="<notempty name='_REQUEST.end_time'>{$_REQUEST.end_time}</notempty>" >按单号,姓名,房间查询
            <input type="text" name="keywords" title="高级查询" class="small" value="<notempty name='_REQUEST.keywords'><php>echo urldecode($_REQUEST['keywords'])</php></notempty>" ></span></div>
<input type="hidden" name="listRows" value="1000" />
<html:imageBtn type="submit" name="search" value="查询" style="impBtn hMargin fLeft shadow" />
</div>
<!-- 高级查询区域 -->
<div  id="searchM" class=" none search cBoth" >
</div>
</form>
</div>
<form method="post" action="__URL__">
        <div  id="searchM" class="fLeft impBtn" >
            <select name="status">
                <option value="">全部状态</option>
                <volist name="status" id="st">
                    <option value="{$key}" <eq name="_REQUEST.status" value="$key">selected</eq> >{$st}</option>
                </volist>
            </select><input type="submit" value="查询" style="width:70px;" class="imgButton search"><font size="1px">(默认全部状态)</font>

        </div>
    </form>
<!-- 功能操作区域结束 -->

<!-- 列表显示区域  -->
<div class="list" >
<html:list id="checkList" name="checkin" style="list" checkbox="true" action="true" datasource="list" show="id:编号:edit1,checkin_no:入住单号:edit,order_id|:订单编号,member_id|getMemberFullNameLink:会员,room_no:房间,start_time|toDate:入住时间,end_time|toDate:离开时间,balance_money:结账金额,create_time|toDate:创建时间,status|getConfigVal=checkinstatus:状态,id|other_detail_link:借还消费记录,user_id|getUserName=User:操作人,check_status|getStatus:审核状态" actionlist="check_status|showCheckStatus=$checkin['id']" />
</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>
<!-- 主页面结束 -->
<script type="text/javascript">
    function edit1(id){
        location.href="__URL__/edit1/id/"+id;
    }
</script>

